/**
 * Copyright (c) 2009-2010 李冬生(Domsn Lee)
 * Jul 1, 2009 11:24:37 PM  
 * Email: 8971092@qq.com
 * QQ: 8971092
 * All rights reserved
 * 转载请注明版权信息
 */
package com.langsin.crmpro.utils;

import java.util.Date;

/**
 * @author Domsn
 *
 */
public class STool
{
	
	public static boolean $(String _str)
	{
		boolean $flag = false;
		
		if( _str != null && !"".equals(_str))
			$flag = true;
		
		return $flag;
	}
	
	public static boolean $(String ... _str)
	{
		boolean $flag = true;
		
		for( int i = 0; i< _str.length; i++)
		{
			if( _str[i] == null || "".equals(_str[i]))
			{
				$flag = false;
				break;
			}
		}
		
		return $flag;
	}
	
	public static boolean $(Object _obj)
	{
		boolean $flag = false;
		
		if( _obj != null)
			$flag = true;
		
		return $flag;
	}
	
	public static boolean $(Object ... _obj)
	{
		boolean $flag = true;
		
		for( int i = 0 ; i< _obj.length; i++)
		{
			if( _obj == null)
			{
				$flag = false;
				break;
			}
		}
		return $flag;
	}
	
	public static void main(String [] args)
	{
		System.out.println(STool.$(new String[]{"","2","2","34"}));

		Date d = null;
		
		STool.$(d);
	}

}
